_m_o_d_e Specifies which matrix stack is the target for subsequent matrix
operations. Four values are accepted: GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW,
GGGGLLLL____PPPPRRRROOOOJJJJEEEECCCCTTTTIIIIOOOONNNN, GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE, and GGGGLLLL____CCCCOOOOLLLLOOOORRRR (if and only if the
SSSSGGGGIIII____ccccoooolllloooorrrr____mmmmaaaattttrrrriiiixxxx extension is supported). The initial value is
GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee sets the current matrix mode. _m_o_d_e can assume one of four
values:
GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW Applies subsequent matrix operations to the modelview
matrix stack.
GGGGLLLL____PPPPRRRROOOOJJJJEEEECCCCTTTTIIIIOOOONNNN Applies subsequent matrix operations to the
projection matrix stack.
GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE Applies subsequent matrix operations to the texture
matrix stack.
GGGGLLLL____CCCCOOOOLLLLOOOORRRR Applies subsequent matrix operations to the color
matrix stack. This option is available only if the
SSSSGGGGIIII____ccccoooolllloooorrrr____mmmmaaaattttrrrriiiixxxx extension is supported.
To find out which matrix stack is currently the target of all matrix
operations, call ggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAATTTTRRRRIIIIXXXX____MMMMOOOODDDDEEEE. The initial value is
GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW.
EEEERRRRRRRROOOORRRRSSSS
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _m_o_d_e is not an accepted value.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee is executed between the
execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd.
RRRReeeeaaaalllliiiittttyyyyEEEEnnnnggggiiiinnnneeee, RRRReeeeaaaalllliiiittttyyyyEEEEnnnnggggiiiinnnneeee2222, and VVVVTTTTXXXX systems do not support color
matrix transformations on images as they are loaded to or read back from
ggggllllLLLLooooaaaaddddMMMMaaaattttrrrriiiixxxx, ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee, ggggllllPPPPiiiixxxxeeeellllTTTTrrrraaaannnnssssffffeeeerrrr (for information about the
color matrix stack), ggggllllPPPPuuuusssshhhhMMMMaaaattttrrrriiiixxxx